]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
a11y menu: Add "All Accessibility Settings" entry
authorsunflowerskater <sunflowerskater@tutanota.com>
Fri, 13 Jan 2023 17:29:13 +0000 (14:29 -0300)
committerMarge Bot <marge-bot@gnome.org>
Tue, 7 Feb 2023 14:59:58 +0000 (14:59 +0000)
Unlike other top bar menus, the accessibility menu doesn't provide
quick access to the corresponding settings. It's still useful, given
that not all settings are exposed in the menu, so add a settings entry.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6058

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2615>

js/ui/status/accessibility.js

index a4bad14fd2891e042a379780ca6cab253f100919..5d02b97ccd96f5ac7cec73e48dff06e1880e2b82 100644 (file)
@@ -74,6 +74,10 @@ class ATIndicator extends PanelMenu.Button {
         let mouseKeys = this._buildItem(_("Mouse Keys"), A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
         this.menu.addMenuItem(mouseKeys);
 
+        this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
+        this.menu.addSettingsAction(_('Accessibility Settings'),
+            'gnome-universal-access-panel.desktop');
+
         this._syncMenuVisibility();
     }